package model.dynamic;

import model.AbstractDepartment;

//A级单位
public class DyADepartment extends TransDyDepartment
{
	 String aName;

	public DyADepartment(DyBDepartment dyBDepartment)
	{
		this.aName = dyBDepartment.aName;
	}

	@Override
	public boolean hasSubDepartment() {return true;}


	@Override
	public boolean isSubDepartmentInThis(AbstractDepartment department)
	{
		DyBDepartment dyBDepartment =(DyBDepartment)department;
		return aName.equals(dyBDepartment.aName);
	}

	@Override
	public String departmentName()
	{
		return aName;
	}
}
